package p270jp.pxv.android.commonObjects.model;

import android.support.p024v4.media.C0261e;
import p325m0.C4721b;
import p389ob.SerializedName;

/* compiled from: UserState.kt */
/* renamed from: jp.pxv.android.commonObjects.model.UserState */
/* loaded from: classes2.dex */
public final class UserState {
    @SerializedName("can_change_pixiv_id")
    private final boolean canChangePixivId;
    @SerializedName("has_changed_pixiv_id")
    private final boolean hasChangedPixivId;
    @SerializedName("has_password")
    private final boolean hasPassword;
    @SerializedName("is_mail_authorized")
    private final boolean isMailAuthorized;

    public UserState(boolean z, boolean z2, boolean z3, boolean z4) {
        this.isMailAuthorized = z;
        this.hasChangedPixivId = z2;
        this.canChangePixivId = z3;
        this.hasPassword = z4;
    }

    public static /* synthetic */ UserState copy$default(UserState userState, boolean z, boolean z2, boolean z3, boolean z4, int i, Object obj) {
        if ((i & 1) != 0) {
            z = userState.isMailAuthorized;
        }
        if ((i & 2) != 0) {
            z2 = userState.hasChangedPixivId;
        }
        if ((i & 4) != 0) {
            z3 = userState.canChangePixivId;
        }
        if ((i & 8) != 0) {
            z4 = userState.hasPassword;
        }
        return userState.copy(z, z2, z3, z4);
    }

    public final boolean component1() {
        return this.isMailAuthorized;
    }

    public final boolean component2() {
        return this.hasChangedPixivId;
    }

    public final boolean component3() {
        return this.canChangePixivId;
    }

    public final boolean component4() {
        return this.hasPassword;
    }

    public final UserState copy(boolean z, boolean z2, boolean z3, boolean z4) {
        return new UserState(z, z2, z3, z4);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof UserState)) {
            return false;
        }
        UserState userState = (UserState) obj;
        return this.isMailAuthorized == userState.isMailAuthorized && this.hasChangedPixivId == userState.hasChangedPixivId && this.canChangePixivId == userState.canChangePixivId && this.hasPassword == userState.hasPassword;
    }

    public final boolean getCanChangePixivId() {
        return this.canChangePixivId;
    }

    public final boolean getHasChangedPixivId() {
        return this.hasChangedPixivId;
    }

    public final boolean getHasPassword() {
        return this.hasPassword;
    }

    public int hashCode() {
        boolean z = this.isMailAuthorized;
        int i = 1;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = i2 * 31;
        boolean z2 = this.hasChangedPixivId;
        if (z2) {
            z2 = true;
        }
        int i6 = z2 ? 1 : 0;
        int i7 = z2 ? 1 : 0;
        int i8 = z2 ? 1 : 0;
        int i9 = (i5 + i6) * 31;
        boolean z3 = this.canChangePixivId;
        if (z3) {
            z3 = true;
        }
        int i10 = z3 ? 1 : 0;
        int i11 = z3 ? 1 : 0;
        int i12 = z3 ? 1 : 0;
        int i13 = (i9 + i10) * 31;
        boolean z4 = this.hasPassword;
        if (!z4) {
            i = z4 ? 1 : 0;
        }
        return i13 + i;
    }

    public final boolean isMailAuthorized() {
        return this.isMailAuthorized;
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("UserState(isMailAuthorized=");
        c.append(this.isMailAuthorized);
        c.append(", hasChangedPixivId=");
        c.append(this.hasChangedPixivId);
        c.append(", canChangePixivId=");
        c.append(this.canChangePixivId);
        c.append(", hasPassword=");
        return C4721b.m3753a(c, this.hasPassword, ')');
    }
}
